module.exports = app => {

  const mongoose = app.mongoose;
  const Schema = mongoose.Schema;

  const TestSchema = new Schema({
    classid:{type:Number,unique:true,required:true},
    className: { type: String,required:true },
    classroom: { type: Number,required:true},
    teacherid:{type : Number ,required:true},
    classTime:{type:Number,}
  });

  return mongoose.model('Test', TestSchema, 'test');
}
